import mx.effects.Effect;
import mx.effects.IEffectInstance;

/**
 * Factory class for creating <code>PaddingEffectInstance</code> effects.
 */
public class PaddingEffect extends Effect
{
	/**
	 * The padding from which we want to play the event to zero.
	 */
	public var paddingFrom:Number;
	
	/**
	 * Constructor which sets the <code>instanceClass</code> to <code>PaddingEffectInstance</code>.
	 */
	public function PaddingEffect(target:Object = null)
	{
		super(target);
		
		instanceClass = PaddingEffectInstance;
	}
	
	/**
	 * Inits the instance and sets its <code>paddingFrom</code>.
	 */
	override protected function initInstance(instance:IEffectInstance):void
	{
		super.initInstance(instance);
		
		PaddingEffectInstance(instance).paddingFrom = paddingFrom;
	}
	
}
}